#ifndef LAB7_PLACE_H
#define LAB7_PLACE_H

#include <cstring>
#include <iostream>

class Place {
protected:
    int peopleCount;
    char* name;
    static Place* begin;
    static Place** list;
    static int count;
public:
    Place(int pcount, const char* placeName);
    Place(const Place& a);
    Place& operator=(const Place& a);
    virtual ~Place();
    void Add();
    virtual void out() = 0;
    static void print();
    static void freeList();
};

#endif //LAB7_PLACE_H